
/**
 * @brief    Defines a set of structural responses that is used in the design
 * either as constraints or as an objective.
 *
 * @version  0.1
 * @author   wuxingchuang
 * @date     2025.04.11
 *          _
 *      ___| |__   ___ _ __   __ _  ___  _ __   __ _
 *     / __| '_ \ / _ \ '_ \ / _` |/ _ \| '_ \ / _` |
 *     \__ \ | | |  __/ | | | (_| | (_) | | | | (_| |
 *     |___/_| |_|\___|_| |_|\__, |\___/|_| |_|\__, |
 *                           |___/             |___/
 * @copyright (c) 2024 by 神工仿真, All Rights Reserved.
 */
#pragma once
#include "DataStructure/Common/Id.h"
#include "DataStructure/Common/Real.h"
#include "DataStructure/Input/Design/DesignBase.h"

SG_DATASTRUCTURE_FEM_NAMESPACE_OPEN

struct DRESP1Data : public DesignBase {
  struct ATTIData {
    SG::DataStructure::Common::I64 m_ATTI = 0;  ///<
  };

  char m_LABEL[8] = {0};                          ///<
  char m_RTYPE[8] = {0};                          ///<
  char m_PTYPE[8] = {0};                          ///<
  SG::DataStructure::Common::Id m_RPSID = 0;      ///<
  char m_NTUSED[4] = {0};                         ///<
  SG::DataStructure::Common::Id m_AFPMID = 0;     ///<
  SG::DataStructure::Common::I64 m_REGION = 0;    ///<
  SG::DataStructure::Common::I64 m_ATTA = 0;      ///<
  SG::DataStructure::Common::I64 m_ATTBI = 0;     ///<
  SG::DataStructure::Common::Real m_ATTBR = 0.0;  ///<
  SG::DataStructure::Common::Id m_domainId = 0;   ///<

  std::vector<ATTIData> m_ATTIList;
};

///@{ @brief operator override
DECLSPEC bool operator==(const DRESP1Data::ATTIData& val1,
                         const DRESP1Data::ATTIData& val2);

DECLSPEC bool operator==(const DRESP1Data& val1, const DRESP1Data& val2);
///}@
SG_DATASTRUCTURE_FEM_NAMESPACE_CLOSE
